-- GENERATED SPELL FOR [Bluegill Oracle] --


function spell0_1029(pUnit, Event) --@Healing Ward,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(6274,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_1029', 1, 1)
end

function spell1_1029(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(939,pUnit)
pUnit:RegisterEvent('Sorts_1029', 3000, 1)
end

function Sorts_1029(pUnit, Event)
local choix_sorts_1029 = math.random(0, 1)
if choix_sorts_1029 == 0 then
pUnit:RegisterEvent('spell0_1029', 1, 1)
end
if choix_sorts_1029 == 1 then
pUnit:RegisterEvent('spell1_1029', 1, 1)
end
end

function mob1029_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1029', math.random(1500, 3000), 1)
end

function mob1029_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1029_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1029_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1029, 1, 'mob1029_Action')
RegisterUnitEvent(1029, 2, 'mob1029_Leave')
RegisterUnitEvent(1029, 3, 'mob1029_Kill')
RegisterUnitEvent(1029, 4, 'mob1029_Die')
